'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
    async up(queryInterface, Sequelize) {
        await queryInterface.bulkInsert('Departments', [
            {
                departmentName: '综合部',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                departmentName: '业务部',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                departmentName: '话务部',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                departmentName: '财务部',
                createdAt: new Date(),
                updatedAt: new Date()
            }
        ], {});
    },

    async down(queryInterface, Sequelize) {
        await queryInterface.bulkDelete('Departments', null, {});
    }
};
